package com.anywhere.freightman.system.model;

import com.anywhere.freightman.common.BaseModel;
import com.anywhere.freightman.common.enumeration.CommonStatus;
import com.anywhere.freightman.common.enumeration.RoleType;

import javax.persistence.*;
import java.util.Date;

@Table(name = "sso_role")
@Entity
public class Role extends BaseModel {
    private String name;
    private String code;
    @Column(name = "type", length = 30)
    @Enumerated(EnumType.STRING)
    private RoleType type;
    private Long tenantId;
    @Column(name = "status", length = 30)
    @Enumerated(EnumType.STRING)
    private CommonStatus status;
    private String remark;
    private Date createTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public RoleType getType() {
        return type;
    }

    public void setType(RoleType type) {
        this.type = type;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public CommonStatus getStatus() {
        return status;
    }

    public void setStatus(CommonStatus status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
